package com.bp.common.enums;

/**
 * @author shaominjie
 * @description 通用对错枚举
 * @date 2021/1/29 0029 16:52
 */
public enum EnumYesOrNo {
    /**
     * 成功
     */
    SUCCESS(0,"success","成功"),

    /**
     * 失败
     */
    FAIL(1,"fail","失败");

    private Integer type;

    private String code;

    private String msg;

    EnumYesOrNo(Integer type, String code, String msg) {
        this.type = type;
        this.code = code;
        this.msg = msg;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
